// LaserProtocol.h: interface for the CLaserProtocol class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_LASERPROTOCOL_H__3714D3A6_812B_47EE_940C_799F61E5150F__INCLUDED_)
#define AFX_LASERPROTOCOL_H__3714D3A6_812B_47EE_940C_799F61E5150F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "SerialCom.h"

class CLaserProtocol  
{
public:
	bool InitPort(ComParam& sendDCB);
	int SendData(CString strSendData);
	int SendData(unsigned char* bufIn,int nLength);
	int ReceiveData(CString& strSendData);
	CLaserProtocol();
	virtual ~CLaserProtocol();

protected:
	CSerialCom m_SendPort;
	
	double m_dFrequence;
	double m_dDuty;
};

#endif // !defined(AFX_LASERPROTOCOL_H__3714D3A6_812B_47EE_940C_799F61E5150F__INCLUDED_)
